home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld: Super Stacks!
/
Macworld CD.iso
/
HyperCard Archives
/
International
/
French v1.2.5.1
/
Piles principales
/
Notes sur la version 1.2.5
/
card_9689.txt
< prev
next >
Wrap
Text File
|
1989-10-04
|
2KB
|
81 lines
-- card: 9689 from stack: in.5
-- bmap block id: 0
-- flags: 0000
-- background id: 5683
-- name: foundLine
-- part contents for background part 9
----- text -----
Nouvelles fonctions HyperTalk
Carte 4 sur 10
-- part contents for background part 7
----- text -----
foundLine
-- part contents for background part 11
----- text -----
Cette fonction renvoie la description de la ligne où la chaîne recherchée par la dernière commande Find a été localisée, sous la forme : line <nombre> of <card | bkgnd> field <nombre>. Si la recherche n'a pas abouti, la fonction renvoie une chaîne vide.
-- part contents for background part 8
----- text -----
the foundLine
-- part contents for background part 10
----- text -----
aucun
-- part contents for background part 17
----- text -----
--après exécution des commandes suivantes
find "Anne"
put the foundLine
--vous obtiendrez un résultat du type :
line 1 of bkgnd field 3
--utilisation pour sélectionner une ligne :
find currentTopic in field "Sujets"
select the foundLine of field "Sujets"
-- part contents for background part 18
----- text -----
on foundLineDemo
--affiche la ligne où a été trouvée la chaîne
find "HyperTalk"
put the foundLine
wait 2 seconds
--sélectionne la ligne entière
select the foundLine
wait 2 seconds
cleanExit -- dans le script du fond courant
end foundLineDemo
-- part contents for background part 31
----- text -----
Find
foundChunk
foundField
foundText
-- part contents for background part 35
----- text -----
• Une ligne est délimitée par un caractère retour.
Lorsqu'une ligne est coupée en deux pour une question
de longueur, HyperCard considère qu'il s'agit d'une seule
ligne.
• Si la chaîne localisée s'étend sur plusieurs lignes, the
foundLine ne décrit que la première.